package com.jian.java;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Jiange
 * @create 2021-04-22-13:11
 */
public interface StudentMapper {
    public List<Student> getAll();

    @Insert("insert students(sno,sname,sex) values(#{Sno},#{sname},#{sex})")
    public int insert(Student student);

    @Delete("delete from students where sno=#{Sno}")
    public int delete(String Sno);
}
